'use stict'
const Koa=require('koa');
const bodyparser=require('koa-bodyparser');
const cors=require('koa-cors');
const router=require('koa-router')

const sequelize=sequelize[Blog,DataType,Op](
    
)
Blog,async(ctx,next)=define([
    title,
    {
        DataType,STRING,
        allowNull:false
    },
    abstrac,
    {
        DataType,STRING,
        allowNull:false  
    },
    content,
    {
        DataType,STRING,
        allowNull:false 
    },
    classify,
    {
        DataType,STRING,
        allowNull:false 
    },
    author,
    {
        DataType,STRING,
        allowNull:false 
    },
    time,
    {
        DataType,STRING,
        allowNull:false
    }
])

const sequelize=sequelize('demo','postgres','Xu_0708',{
    host:'x0708.xyz',
    DataTypr:'postgres'
})


let app=new use(Koa());





























app.use(cors())
app.use(bodyparser());
app.use(router.routes())

app.listen(8000);
console.log(`https://localhost:8000`);